<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文件下载</title>
    <script src="static/js/jquery-1.11.3.js"></script>
</head>
<body>
    <button id="select">查询任务进度</button>
    <div id="a"></div>
    <script>
        $(function(){
            $('#select').click(function(){
                $.ajax({
                    url:"/get_hd_fname",
                    async: false,
                    datatype: 'json',
                    success: function(data){
                        data = JSON.parse(data);
                        console.log(data);
                        html = '点击下载: <a href="/getRemoteHdMovie?hd_fname='+ data.hd_fname +'">'+ data.hd_fname +'</a>'
                        $('#a').html(html);
                    }
                })
            });
        });
    </script>
</body>
</html>